table th {
  background-color: #000;
  color: #fff;
}

table tbody tr:nth-child(even) {
  background-color: #ccc;
}

table tbody tr:nth-child(-n+3) {
  color: red;
}

input {
  width: 150px;
  -webkit-transition: width 2s;
  -o-transition: width 2s;
  transition: width 2s;
}

input:focus {
  width: 300px;
}
@keyframes myaninat{
  from {left: 300px;}
  to{left: 0;}
}
.js-box {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
}
.js-box .box {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
}
.js-box .item {
  position: absolute;
  z-index: 1;
  width: 300px;
  height: 200px;
}

.js-box .item.red {
  background-color: red;
}

.js-box .item.green {
  background-color: green;
}

.js-box .item.blue {
  background-color: blue;
}
.js-box .item:target {
  z-index: 3;
  animation: myaninat 2s;
}


.js-box .btns {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: right;
}

.js-box .btns a {
  display: inline-block;
  padding: 0 10px;
  line-height: 24px;
  background-color: rgba(255, 255, 255, .4);
  text-decoration: none;
  color: #fff;
}

